import Vue from 'vue'
import Router from 'vue-router'

import selectPerson from '@/views/selectPerson'
import selectPersonOrg from '@/views/selectPersonOrg'
import HellowFromVux from '@/components/HelloFromVux.vue'
import scrollerMain from '@/views/scroller/index'
import scroller from '@/views/scroller/components/index'
import betterScroller from '@/views/betterScroller/index'
import checklistpopover from '@/views/checklistpopover/index'
import testPopover from '@/views/testPopover .vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'mainpage',
      component: HellowFromVux
    },
    {
      path: '/scrollerMain',
      name: '',
      component: scrollerMain,
      children: [
        {
          path: '',
          name: '',
          component: scroller
        },
      ]
    },
    {
      path: '/selectPerson',
      name: 'selectPerson',
      component: selectPerson
    },
    {
      path: '/selectPersonOrg',
      name: 'selectPersonOrg',
      component: selectPersonOrg
    },
    {
      path: '/betterScroller',
      name: 'betterScroller',
      component: betterScroller
    },
    {
      path: '/checklistpopover',
      name: 'checklistpopover',
      component: checklistpopover
    },
    {
      path: '/testPopover',
      name: 'testPopover',
      component: testPopover
    }
  ]
})
